package org.wdcode.shop.helper;

import org.wdcode.base.helper.BaseEntityCacheHelper;
import org.wdcode.shop.cache.OrderFormCache;
import org.wdcode.shop.po.OrderForm;

/**
 * 订单相关业务助手类 可操作缓存
 * @author WD
 * @since JDK6
 * @version 1.0 2009-11-23
 */
public final class OrderFormHelper extends BaseEntityCacheHelper<OrderFormCache, OrderForm> {
	// 订单助手
	private static OrderFormHelper	helper;

	/**
	 * 实例化一个对象
	 */
	public OrderForm newInstance() {
		return new OrderForm();
	}

	/**
	 * 获得子类的Class
	 * @return 子类的Class
	 */
	public Class<OrderForm> getEntityClass() {
		return OrderForm.class;
	}

	/**
	 * 获得订单助手
	 * @return 订单助手
	 */
	public static OrderFormHelper getHelper() {
		return helper;
	}

	/**
	 * 设置订单助手
	 * @param helper 订单助手
	 */
	public void setHelper(OrderFormHelper helper) {
		OrderFormHelper.helper = helper;
	}
}
